﻿<!DOCTYPE html>
<!--  报事报修列表  -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>服务区-管理系统</title>
<link rel="shortcut icon" href="//www.fuwuqu.com/ifs/netflag/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/CMS/css/DefaultSkin.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/load.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/control.css" />

<!-- page.css拆分 -->
<link rel="stylesheet" type="text/css" href="/CMS/css/list.css" /> 
<link rel="stylesheet" type="text/css" href="/CMS/css/anim.css" /> 
<link rel="stylesheet" type="text/css" href="/CMS/css/page.css?version=20171219" />
<link rel="stylesheet" type="text/css" href="/CMS/css/comm.css?v=20171208" /> 

<link rel="stylesheet" type="text/css" href="/CMS/css/select2/select2.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/zTreeStyle/zTreeStyle.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/core.css" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/file/uploadify/uploadify.css" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/treeview/jquery.treeview.css" />

<link rel="stylesheet" type="text/css" href="/CMS/css/multi-select.css" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/bsgrid/bsgrid.all.min.css" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/bsgrid/bsgrid.all.min.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/jeasy-ui/easyui.css" />
<link rel="stylesheet" type="text/css" href="/CMS/js/plugins/poshytip/tip-darkgray/tip-darkgray.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/addinfo.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/prettyPhoto.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/jquery-ui-1.10.4.custom.min.css" />
<link rel="stylesheet" type="text/css" href="/CMS/css/jquery.editable-select.min.css" />
<script type="text/javascript" src="/CMS/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/public-obj.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/bind.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/controls.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/slide.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/switch.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/initial.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/printhtml.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/listBox.js"></script>

<script type="text/javascript" src="/CMS/js/plugins/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/file/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/layer/layer.js?version=20170901"></script>
<script type="text/javascript" src="/CMS/js/plugins/select2/select2.full.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/select2/i18n/zh-CN.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/treeview/jquery.treeview.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/form/jquery.form.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/ztree/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/ztree/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/constant.js?version=20171219"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/common.js?version=20171219"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/bmsAjax.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/validata.js?version=20171219"></script>
<script type="text/javascript" src="/CMS/js/plugins/validate/jquery.validate.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/validate/localization/messages_zh.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/validate/regValidate.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/comm/popup_layer.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery_magnifier.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.multi-select.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.quicksearch.js"></script>
<script type="text/javascript" src="/CMS/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.prettyPhoto.js"></script>

<script type="text/javascript" src="/CMS/js/plugins/bootstrap-paginator/js/bootstrap-paginator.min.js"></script>

<script type="text/javascript" src="/CMS/js/plugins/bsgrid/grid.zh-CN.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/bsgrid/bsgrid.all.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/bsgrid/grid.extend.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="/CMS/js/plugins/poshytip/jquery.poshytip.js"></script>

<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/joinUs/AddListBox.js"></script>
<script type="text/javascript" src="/CMS/js/plugins/jquery/jquery.editable-select.min.js"></script>

<!-- echarts -->
 <script type="text/javascript" src="/CMS/js/plugins/echarts/dist/echarts.js"></script> 
 <script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/bar.js"></script> 
 <script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/line.js"></script> 
 <script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/pie.js"></script> 
 <script type="text/javascript" src="/CMS/js/plugins/echarts/dist/chart/funnel.js"></script> 

<!-- bootstrap -->
<link rel="stylesheet" type="text/css" href="/CMS/css/bootstrap/bootstrap.css" />











<!-- task -->
<link rel="stylesheet" type="text/css" href="/CMS/css/task/commTask.css" />
<script type="text/javascript" src="/CMS/js/task/commTask.js"></script>

<!-- 导航js-->
<script type="text/javascript" src="/CMS/js/plugins/breadCrumbNavigation/navigation.js"></script>

<script>

//定义右下角任务列表
//定义右下角任务列表
var _options = {};

_options.HOST = '/CMS/';
_options.MAX_COUNT = 30;
new CommTask(_options);

document.domain = location.hostname;
var isIE = (function () {
	var ua = window.navigator.userAgent.toLowerCase();
	if (ua.indexOf("msie") > 0 || ua.indexOf("trident") > 0 ) {
    	return true;
	}else {
    	return false;
	}
}());
 /*<![CDATA[*/
         function findDBInfo(){
	 	    var url = 'pasMessage/list.ht';
	 	   	addTabs(url,'待办任务');
	     }

 		function showTask(){
 			var url = 'task/list.ht';
	 	   	addTabs(url,'任务列表');
 		}

 		function setActiveURL(page , href){
 			if(page == top){
 				if(typeof(page.activeURL) == 'function'){
 					page.activeURL(href);
 	 			}
 			}else{
 				setActiveURL(page.parent,href);
 			}
 		}

		$(function(){

			var href = document.location.href;
			var prefix = location.protocol + "//" + location.hostname + (location.port == "" ? "" : (":" + location.port));
			href = href.replace(prefix,"");
			setActiveURL(self , href);

			function menuControl(){
				var _options=this.options={
					openCls:"active_subopen",//展开子列表后菜单盒子的class名
					disableCls:"active_subdisable",//展开子列表后菜单盒子的class名
                    menuWarpCls:"content",
                    menuSmall:"menu-small"
				};
				this.menuBox=$(".grid-s5m0");
                this.menuWarp=$("#"+_options.menuWarpCls);
                this.menuSmallBtn=this.menuBox.find(".menu-small-btn");
				this.menuBoxList=$(".menu-box-list .dd-item");
				this.menuIndex=$(".menu-box-list .dd-index");
				this.submenuOpenBtn=this.menuBox.find(".submenu-open");
				this.subMenuBox=this.menuBox.find(".dd-inner");
				this._userState=false;
                this._hide();
                this._menuBig();
                this._disable();
				this._bind();
			}
			menuControl.prototype={
				_resize:function(){
                    var _this=this,
                        win=$(window),
                        count=5;
                    _this._timeout && clearTimeout(_this._timeout);
					function wresize(){
                        win.resize();
                        count--;
                        if(count>0){
                            _this._timeout && clearTimeout(_this._timeout);
                            _this._timeout=setTimeout(function(){
                                wresize();
                            },100);
                        }
                    }
                    wresize();
				},
				/**
				*隐藏菜单
				*/
				_hide:function(){
					var _this=this,
					_tempOption=this.options;

					_this._state=false;

                    _this.menuBox.removeClass(_tempOption.disableCls);
					_this.menuBox.removeClass(_tempOption.openCls);
					_this._resize();
				},

                _disable:function(){
					var _this=this
					_tempOption=this.options;

					_this.menuBox.addClass(_tempOption.disableCls);
                    _this.menuBox.removeClass(_tempOption.openCls);
                    _this._resize();
                },
				/**
				*打开菜单
				*/
				_open:function(){
					var _this=this,
					_tempOption=this.options;

					_this._state=true;
                    _this.menuBox.removeClass(_tempOption.disableCls);
					_this.menuBox.addClass(_tempOption.openCls);
					_this._resize();
				},

                /**
                 * 最小化菜单
                 * @private
                 */
                _menuSmall:function(){
                    var _this=this,
					_tempOption=this.options;

                    _this._menuState=false;

                    _this.menuWarp.addClass(_tempOption.menuSmall);
                    _this._resize();
                },

                /**
                 * 最大化菜单
                 * @private
                 */
                _menuBig:function(){
                    var _this=this,
					_tempOption=this.options;

                    _this._menuState=true;

                    _this.menuWarp.removeClass(_tempOption.menuSmall);
                    _this._resize();
                },
				_bind:function(){
					var _this=this;


                    _this.menuSmallBtn.bind("click",function(){
						if(_this._menuState){
                            _this._userState=false;
							_this._menuSmall();
						}else{
                            _this._userState=true;
							_this._menuBig();
						}
					});

					_this.submenuOpenBtn.bind("click",function(){
						if(_this._state){
							_this._hide();
						}else{
							_this._open();
						}
					});
                    _this.menuIndex.bind("click",function(){
                        _this._disable();
                    });
					_this.menuBoxList.bind("click",function(){
                        if(!_this._userState){
                            _this._menuSmall();
                        }
						_this._open();
					});
				}
			};

			new menuControl();

			function SetScroll() {
			    this._bind();
			}

			SetScroll.prototype = {
			    /**
			     * 添加事件方法
			     * @param {function} fn 事件调用的方法
			     * @param {Node} node 事件需要操作的节点
			     */
			    addEvent: function (fn, node) {
			        if (fn && $.isFunction(fn)) {
			            this.eventList = this.eventList || [];
			            this.eventList.push({ fn: fn, node: node });
			        }
			    },

			    /**
			     * 事件触发时执行的事件
			     */
			    triggerEvt: function () {
			        var _this = this,
			            bodyscrollTop = _this._getScrollNode();

			        _this.eventList && $.each(_this.eventList, function () {
			            this.fn(bodyscrollTop.scrollTop, this.node);
			        });
			    },
			    /**
			     * 获取支持scrollTop的元素
			     * @protected
			     * @returns {Node} 返回支持Dom节点scrollTop的元素
			     */
			    _getScrollNode: function () {
			        return document.documentElement && document.documentElement.scrollTop ? document.documentElement : document.body;
			    },
			    /**
			     * 绑定事件
			     * @protected
			     */
			    _bind: function () {
			        var _this = this;
			        $(window).bind("scroll", function () {
			            _this.triggerEvt();
			        });
			    }
			};

			var scroll=new SetScroll(),//滚动条对象
				menuBox=$(".menu-box"),
				ddinner=$(".dd-inner");//子菜单列表盒子


				scroll.addEvent(function(scrollTop,scrolla){
					var top=50-scrollTop;
					if(top<=0){
						top=0;
					}
					scrolla.css({top:top});
					ddinner.css({top:top});
				},$(".menu-box"));

			$("img").error(function(){//图片加载错误
				$(this).attr("src", '/CMS/img/u146.png?');//设置默认图片
			});
			var imgUrl = '';

			$("#menu_tree").bind('click',function(event){
				if(event.target.className.indexOf("hitarea")>-1){
					if(YW.newobj){
						if(YW.newobj.leftheigth){
							YW.newobj.leftheigth.setSize();
						}
					}
				}
			})
			$(".item-hd,.dd-nav").bind('click',function(){
				if(YW.newobj){
					if(YW.newobj.leftheigth){
						YW.newobj.leftheigth.setSize();
					}
				}
			})
		});
		  function clearList(){
			  $(".icip_pull_item").each(function(){
					  $(this).removeClass("icip_button_c4");
				  });
		  }
	     $(function(){
	           $(".icip_pull_item").click(function(){
	        	   clearList();
	     		 var pageSize=$(this).attr("name");
	     		  $(this).addClass("icip_button_c4");
	     		  $("#pageSize").val(pageSize);
	     		 go($("#pagenumber").html());
	           });
	           //展开更多
	           (function(){
	               $(".icip_btn_more").delegate(".icip_more_show","mouseover",function(){
	                   $(this).parents('.icip_btn_more').addClass("icip_active");
	               });
	               $(".icip_btn_more").on("mouseout",function(evt){
	                   if(!$(this).find(evt.relatedTarget)[0]){
	                       $(this).removeClass("icip_active");
	                   }
	               });

	           })();
	       });
/*]]>*/
</script>
</head>
<script type="text/javascript" src="/CMS/js/repairServices/list.js?v=20171216"></script>
<body class="bgcolor-body">
	<div>
	<div class="cur-position"></div>
</div>
	<div>
<div class="icip_skin_box1">
	<div class="icip_content_box1">
		<div>
<div class="icip_title_box">
	<div class="left">
		<span class="icip_title_text">报事报修列表</span>
         <span class="refresh" style="margin-right: 60px;">
   <a class="btn btn-default" href="/CMS/repiarInfo/showList.ht">刷新</a>
</span>
	</div>

	<!--<div class="right">
		<span class="icip_button icip_button_c2">
		<a style="color:#fff;" href="/CMS/dmsrn/list.ht">报修通知设置</a>
		</span>
	</div>-->
</div>
</div>
		<form id="frm" name="frm" method="post" action="/CMS/repiarInfo/showList.ht">
			<div>
<!-- 如果只有一个小区，则不用显示搜索 -->
<!--div class="icip_css3select_wrap" style="margin-bottom: 5px;">
	<div class="control-css3select item-box-p1 css3select-icon-hide">
		<select id="cid" class="m-select" name="cid">
			<option value="${cid}">${XQ_DICT.get(cid,'').encode('utf-8')}</option>
		</select>
	</div>
</div>
<div style="margin-top: 10px; display: inline-block;vertical-align: middle;">报修日期：</div>
<div class="icip_search_wrap" style="padding-right:0;width: 300px;">
	<input type="text" name="startDate" id="startDate" readonly="readonly" class="Wdate icip_inupt" size="8" style="width: 110px;height:30px;" onclick="WdatePicker({maxDate:&#39;%y-%M-%d&#39;})" value="${startDate}" /> 至
	<input type="text" name="endDate" id="endDate" readonly="readonly" class="Wdate icip_inupt" size="8" style="width: 110px;height:30px;" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;,alwaysUseStartDate:true,maxDate:&#39;%y-%M-%d&#39;,minDate:&#39;#F{$dp.$D(\&#39;startDate\&#39;)}&#39;})" value="${endDate}" />
</div>
<span class="icip_button icip_button_c4" onclick="search()" style="display: inline-block;margin-top: 10px;vertical-align: middle;margin-left: -14px">搜索</span>
</div-->
			<div>
<div class="list-table">
	<div class="list-table-cont">
		<div class="table22">
			<table class="icip_table">
			<tr class="icip_th">
				<td class="col2" style="width:15%;">
								报修地址
				</td>
				<td class="col3 JsW" style="width:10%;" ><span >
								报修类型
				</span></td>
				<td class="col19" style="width:15%;">
								报修项目
				</td>
                <td class="col4" style="width:15%;">
								报修原因
				</td>
				<td class="col5" style="width:8%;">
								报修人
				</td>
				<td class="col6" style="width:10%;">
								报修人电话
				</td>
				<td class="col7 JsW" style="width:7%;" ><span >
								状态
				</span></td>


                <td class="col10" style="width:10%;">
								报修时间
				</td>

				<td class="col12" style="width:10%;">
								操作
				</td>
			</tr>
            %if rs:
            %for row in rs:
			<tr onmouseover="this.style.backgroundColor=&#39;#e3f1ff&#39;" onmouseout="this.style.backgroundColor=&#39;#ffffff&#39;">
				<tr onmouseover="this.style.backgroundColor=&#39;#e3f1ff&#39;" onmouseout="this.style.backgroundColor=&#39;#ffffff&#39;">
				<td class="col2">${row.detailaddress.encode('utf-8') if row.adress else ''}</td>
				<td class="col3">${REPAIRTYPE.get(row.type).encode('utf-8')  if row.type else ''}</td>
                <td class="col9">${PROJECT.get(row.bz2).encode('utf-8')  if row.type else ''}</td>
				<td class="col4">${row.reason.encode('utf-8') if row.reason else ''}</td>
				<td class="col5">${row.pName.encode('utf-8') if row.pName else ''}</td>
				<td class="col6">${row.pMobile.encode('utf-8') if row.pMobile else ''}</td>
				<td class="col7">${REPAIRSTATUS.get(row.status).decode('gbk').encode('utf-8') if row.status else ''}</td>
				<td class="col10">${row.repair_time.encode('utf-8') if row.repair_time else ''}</td>
				<td class="col12">
                    <a href="/CMS/repiarInfo/showdetail.ht?strRId=${row.rid.encode('utf-8') if row.rid else ''}" id="${row.rid.encode('utf-8') if row.rid else ''}">
                        <button class="btn btn-default" id="deatil"> 详情</button>
                    </a>
                      <a href="/CMS/repiarInfo/showsend.ht?strRId=${row.rid.encode('utf-8') if row.rid else ''}" id="${row.rid.encode('utf-8') if row.rid else ''}">
                        <button class="btn btn-default" id="edit">派单</button>
                    </a>
                </td>
			</tr>
            %endfor
            %else:
			<tr>
				<td colspan="10" class="red">无记录</td>
			</tr>
			%endif	
			</table>
			
			<div style="height: 30px"></div>
		</div>
	</div>
</div>
</div>
		<input type="hidden" name="web_token" value="ba52bcf1-dd73-48b7-b488-3368c63e8210" />
<div class="icip_footer_page">
	<div>
		<div class="right">
			<span class="icip_btn_more">
				<input id="pageSize" name="pageSize" type="hidden" value="${pageSize}" />
				<span class="icip_more_icon icip_more_show">
					每页
					<span id="pageSizeChange">${pageSize}</span>
					条
				</span>
				<div class="icip_pull_wrap">
					<div class="icip_pull_box">
						<ul class="icip_pull_list">
							<li name="10" class="icip_pull_item">10</li>
							<li name="15" class="icip_pull_item">15</li>
							<li name="20" class="icip_pull_item">20</li>
							<li name="30" class="icip_pull_item">30</li>
							<li name="50" class="icip_pull_item icip_button_c2">50</li>
							<li name="100" class="icip_pull_item">100</li>
							<li name="150" class="icip_pull_item">150</li>
							<li class="icip_pull_item" name="0"></li>
							<li class="icip_pull_item" name="0"></li>
						</ul>
					</div>
				</div>
			</span>
			<span>
				<span name="pageNum" id="pagenumber">${pageNum}</span>
				<span>页</span>
				<input type="hidden" name="pageNum" id="pagenumberHidden" value="${pageNum}" />
				/
				<span id="_pages">${page_count}</span>
				<span>页</span>
			</span>
			<span class="icip_aspect_wrap">
				<span class="icip_button_navigation icip_iconfont icip_aspect">
					<a href="javascript:void(0);" title="点击查看上一页" onclick="${'go(%d)'%(int(pageNum)-1) if int(pageNum)-1>0 else 'return false;'}">&#xe624;</a>
				</span>
				<span class="icip_button_navigation icip_iconfont icip_aspect">
					<a href="javascript:void(0);" title="点击查看下一页" onclick="${'go(%d)'%(int(pageNum)+1) if int(pageNum)+1<=int(page_count) else 'return false;'}">&#xe625;</a>
				</span>
			</span>
			<span class="item-count">
				<span>共：</span>
				<span id="_pageTotal">${record_count}</span>
				条
			</span>
		</div>
	</div>
</div>
    </form>
	</div>
</div>
</div>
	<div>

</div>
</body>
<script>
var userType = '2';
var statusDicts =[{'dictDestination':'\u672A\u5904\u7406','dictId':'OT2015120900000026500','dictName':'repairStatus','dictValue':'01','dicts':[],'remark':'\u62A5\u4FEE\u5355\u5904\u7406\u72B6\u6001','updateTime':'20151209201016'},{'dictDestination':'\u5DF2\u6D3E\u5355','dictId':'OT2015120900000026501','dictName':'repairStatus','dictValue':'02','dicts':[],'remark':'\u62A5\u4FEE\u5355\u5904\u7406\u72B6\u6001','updateTime':'20151209201016'},{'dictDestination':'\u5DF2\u7EF4\u4FEE','dictId':'OT2015120900000026502','dictName':'repairStatus','dictValue':'03','dicts':[],'remark':'\u62A5\u4FEE\u5355\u5904\u7406\u72B6\u6001','updateTime':'20151209201017'},{'dictDestination':'\u5DF2\u5B8C\u6210','dictId':'OT2015120900000026503','dictName':'repairStatus','dictValue':'04','dicts':[],'remark':'\u62A5\u4FEE\u5355\u5904\u7406\u72B6\u6001','updateTime':'20151209201017'},{'dictDestination':'\u53D6\u6D88\u8BA2\u5355','dictId':'OT2015120900000026504','dictName':'repairStatus','dictValue':'05','dicts':[],'remark':'\u62A5\u4FEE\u5355\u5904\u7406\u72B6\u6001','updateTime':'20151209201018'},{'dictDestination':'\u5DF2\u8BC4\u4EF7','dictId':'OT2015120900000026505','dictName':'repairStatus','dictValue':'06','dicts':[],'remark':'\u62A5\u4FEE\u5355\u5904\u7406\u72B6\u6001','updateTime':'20151209201018'}];
var typedicts = [{'dictDestination':'\u4E2A\u4EBA\u62A5\u4FEE','dictId':'OT2015120900000026476','dictName':'repairType','dictValue':'R001','dicts':[],'remark':'\u62A5\u4FEE\u7C7B\u578B','updateTime':'20151209224510'},{'dictDestination':'\u516C\u5171\u62A5\u4FEE','dictId':'OT2015120900000026477','dictName':'repairType','dictValue':'R002','dicts':[],'remark':'\u62A5\u4FEE\u7C7B\u578B','updateTime':'20151209224540'},{'dictDestination':'\u54A8\u8BE2\u53CD\u9988','dictId':'OT2015120900000026478','dictName':'repairType','dictValue':'R003','dicts':[],'remark':'\u62A5\u4FEE\u7C7B\u578B','updateTime':'20151210024845'}];
</script>
</html>	